package homework.api.day02;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        String path = "http://localhost:8088/myweb/reg?name=zhangsan&pwd=123456&nick=san&age=16";
        String[] map = path.split("[?&=]+");
        for(int i=1;i<map.length;i+=2){
            System.out.println("参数名："+map[i]+"\t参数值："+map[i+1]);
        }
        System.out.println(Arrays.toString(map));
    }
}
